#pragma once

#include <map>
#include "stdafx.h"

using namespace std;

class CMultiWndSplitter : public CSplitterWnd
{
public:
	CMultiWndSplitter(void);
//	~CMultiWndSplitter(void);

public:
//	CMultiWndSplitter();
	virtual ~CMultiWndSplitter();
	int AddSplitterView(int nRow, int nCol, CRuntimeClass * pViewClass, 
				CCreateContext* pContext);
	void ShowSplitterView(int nViewID);
	CWnd* GetSplitterView(int nViewID);

protected:
	map<int, long> m_mapViewPane;
	map<long, int> m_mapCurrentViews;
	
	map<int, CWnd*> m_mapIDViews;
	int m_nIDSplitterID;
//*/
	//int m_nIDCounter;

	CWnd* GetCurrentView(int nRow, int nCol, int * nCurID);
	void SetCurrentView(int nRow, int nCol, int nViewID);
	int HideCurrentView(int nRow, int nCol);
	void GetPaneFromViewID(int nViewID, CPoint * pane);
};

